package com.xmqian.app.project.ui.common.presenter

import com.coszero.common.base.mvp.BasePresenter
import com.xmqian.app.project.common.helper.RetrofitHelper
import com.xmqian.app.project.ui.common.contract.MyWebViewContract
import com.xmqian.app.project.ui.common.model.MyWebViewModel

class MyWebViewPresenter(mView: MyWebViewContract.View?) :
    BasePresenter<MyWebViewContract.View?>(mView), MyWebViewContract.Presenter,
    MyWebViewContract.View {
    /**
     * 获取网页地址
     *
     * @param pageId
     */
    fun getSinglePage(pageId: Int) {
        addTask(
            RetrofitHelper.getInstance().service.getContent(1, 2)
        ) { }
    }

    fun getFeedBackInfo(pageId: Int) {
    }

    override fun onGetSinglePageSucceed(pageBean: MyWebViewModel) {
    }

    override fun onRequestFailed(message: String?) {
    }

    override fun onNetworkError() {
    }
}
